package com.central.post.pojo.report

import com.fasterxml.jackson.annotation.JsonFormat
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.time.LocalDateTime
import java.util.*


@ApiModel("添加举报参数")
data class ReportInsertDto(
    @ApiModelProperty("帖子id") var postId: Long? = null,
    @ApiModelProperty("举报类型") var type: Int? = null,
    @ApiModelProperty("举报原因") var reason: String? = "",
)

@ApiModel("举报列表参数")
data class GetReportListDto(
    @ApiModelProperty("举报类型") var type: Int? = null,
    @ApiModelProperty("举报原因") var reason: String? = null,
)

@ApiModel("举报列表实体")
data class GetReportListVo(
    @ApiModelProperty("id") var id: Long? = null,
    @ApiModelProperty("帖子id") var postId: Long? = null,
    @ApiModelProperty("发布内容") var content: String? = "",
    @ApiModelProperty("发布图片") var pics: List<String>? = null,
    @ApiModelProperty("举报类型") var type: Int? = null,
    @ApiModelProperty("举报类型字符串") var typeStr: String? = "",
    @ApiModelProperty("举报原因") var reason: String? = "",
    @ApiModelProperty("举报人") var nickname: String? = "",
    @ApiModelProperty("举报时间") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") var createTime: Date? = null
)


